package org.htmlparser.tags;

public class OptionTag extends CompositeTag
{
  private static final String[] mEndTagEnders;
  private static final String[] mEnders;
  private static final String[] mIds;

  static
  {
    String[] arrayOfString1 = new String[1];
    arrayOfString1[0] = "OPTION";
    mIds = arrayOfString1;
    String[] arrayOfString2 = new String[4];
    arrayOfString2[0] = "INPUT";
    arrayOfString2[1] = "TEXTAREA";
    arrayOfString2[2] = "SELECT";
    arrayOfString2[3] = "OPTION";
    mEnders = arrayOfString2;
    String[] arrayOfString3 = new String[4];
    arrayOfString3[0] = "SELECT";
    arrayOfString3[1] = "FORM";
    arrayOfString3[2] = "BODY";
    arrayOfString3[3] = "HTML";
    mEndTagEnders = arrayOfString3;
  }

  public String[] getEndTagEnders()
  {
    return mEndTagEnders;
  }

  public String[] getEnders()
  {
    return mEnders;
  }

  public String[] getIds()
  {
    return mIds;
  }

  public String getOptionText()
  {
    return toPlainTextString();
  }

  public String getValue()
  {
    return getAttribute("VALUE");
  }

  public void setValue(String paramString)
  {
    setAttribute("VALUE", paramString);
  }

  public String toString()
  {
    return "OPTION VALUE: " + getValue() + " TEXT: " + getOptionText() + "\n";
  }
}